package com.tjulab.checkin.util;

import lombok.Getter;

@Getter
public enum ResultCode {
    SUCCESS(200, "成功"),
    FAIL(300, "失败"),

    CHECK_IN_FAIL(301 , "不存在该打卡类型"),
    REPEAT_APPLY(302 , "已经有申请事项，不要重复申请"),
    LEFT_VACATION_TIME(303 , "剩余假期时间不足"),
    APPLY_TYPE_FAIL(304 , "不存在的审批类型"),
    USER_NOT_FOUND(305 , "不存在该用户信息"),
    PASSWORD_FAIL(306 , "密码错误"),

    ENTITY_NOT_NULL(100000, "实体不能为空"),
    PARAMETER_ERROR(100001, "传入参数不能为空");



    private Integer code;
    private String message;

    ResultCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
